import { Excalidraw } from "@excalidraw/excalidraw";
import { min_app_shell } from '@linksaas-minapp/api';


function App() {
  return (
    <div style={{ height: "100vh" }}>
      <Excalidraw langCode="zh-CN" gridModeEnabled={true}
        onLinkOpen={(e, ev) => {
          ev.preventDefault();
          ev.stopPropagation();
          if (e.link != null) {
            min_app_shell.openBrowser(e.link);
          }
        }} />
    </div>
  );
}

export default App
